package com.flowable.entity;

import java.time.LocalDate;

public class LeaveRequest {
    private String applicant;
    private String reason;
    private LocalDate startDate;
    private LocalDate endDate;
    private int days;
    private String status;
    private String processInstanceId;

    public LeaveRequest() {}

    public LeaveRequest(String applicant, String reason, LocalDate startDate, LocalDate endDate, int days) {
        this.applicant = applicant;
        this.reason = reason;
        this.startDate = startDate;
        this.endDate = endDate;
        this.days = days;
        this.status = "申请中";
    }

    // Getters and Setters
    public String getApplicant() {
        return applicant;
    }

    public void setApplicant(String applicant) {
        this.applicant = applicant;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    public int getDays() {
        return days;
    }

    public void setDays(int days) {
        this.days = days;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    @Override
    public String toString() {
        return "LeaveRequest{" +
                "applicant='" + applicant + '\'' +
                ", reason='" + reason + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", days=" + days +
                ", status='" + status + '\'' +
                ", processInstanceId='" + processInstanceId + '\'' +
                '}';
    }
}